//
//  ZLTableViewEditConfig.m
//  ZLCustomViews
//
//  Created by 赵振磊 on 2024/3/20.
//

#import "ZLTableViewEditConfig.h"

@implementation ZLTableViewEditConfig

+ (instancetype)config:(NSString *)title action:(ZLTableViewEditConfigAction)action {
    return [self config:title titleColor:nil backgroundColor:nil action:action];
}

+ (instancetype)config:(NSString *)title titleColor:(nullable UIColor *)titleColor backgroundColor:(nullable UIColor *)backgroundColor action:(ZLTableViewEditConfigAction)action {
    ZLTableViewEditConfig *config = [[ZLTableViewEditConfig alloc] init];
    config.title = title;
    config.titleColor = titleColor;
    config.backgroundColor = backgroundColor;
    config.action = action;
    return config;
}

@end
